package com.sugon.service.impl;

import cn.hutool.core.date.DateUtil;
import com.sugon.dao.MesStoplineDao;
import com.sugon.entity.MesStoplineEntity;
import com.sugon.service.MesStoplineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * mes停线数据表Service实现类
 *
 * @author sugon
 * @date 2020-07-19 08:52:40
 */
@Service("mesStoplineService")
public class MesStoplineServiceImpl implements MesStoplineService {
    @Autowired
    private MesStoplineDao mesStoplineDao;

    @Override
    public boolean save(MesStoplineEntity stoplineEntity) {
        stoplineEntity.setFCreatedate(DateUtil.date());
        return mesStoplineDao.save(stoplineEntity) > 0;
    }
}
